/**
 * Copyright (C) 2010  Hylke van der Schaaf
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package hextd.core;

import com.usoog.tdcore.gamestate.GameState;
import com.usoog.tdcore.player.AbstractAiWaveSender;
import hextd.creep.HexTDCreep;
import hextd.creep.HexTDCreepData;
import hextd.tower.HexTDTower;
import hextd.wave.Wave;
import java.util.ArrayList;
import java.util.List;

public class PlayerAiWaveImp extends AbstractAiWaveSender<HexTDCreepData, HexTDCreep, HexTDTower> {

	private List<Wave> waves;

	public PlayerAiWaveImp(int id, GameState gameState, List<Wave> waves) {
		super(id, gameState);
		this.waves = waves;
		super.init();
	}

	@Override
	protected int getWaveCount() {
		return waves.size();
	}

	@Override
	protected List<HexTDCreep> getWave(int waveNr) {
		List<HexTDCreep> creeps = new ArrayList<HexTDCreep>();
		if (waveNr < waves.size()) {
			creeps.addAll(waves.get(waveNr).getEnemies());
		}
		return creeps;
	}

	public void buyTower(int tick, int x, int y, String towerType) {
		throw new UnsupportedOperationException("Not supported yet.");
	}

	public void buyCreep(int tick, String creepKey, int count, int size, long health, int path) {
		throw new UnsupportedOperationException("Not supported yet.");
	}

	public void forfeit(int tick) {
		throw new UnsupportedOperationException("Not supported yet.");
	}
}
